package com.job.createType.builder;

/**
 * @Author 王博
 * @DateTime 2025-04-28 08:12
 */
public class HondaBuilder implements Builder{
    private final Car car;
    public HondaBuilder() {
        this.car = new Car();
    }
    @Override
    public void buildPower() {
        car.setPower("油");
    }

    @Override
    public void buildEngine() {
        car.setEngine("发动机");
    }

    @Override
    public void buildBrand() {
        car.setBrand("本田");
    }

    @Override
    public Car createCar() {
        return car;
    }
}
